package com.yonyou.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class TestController {
	
	@RequestMapping(value="/hello")
	public void getMsg(HttpServletRequest req,HttpServletResponse res,String msg) throws IOException {
		System.out.println("running getMsg.....");
		System.out.println("msg---->" + msg);
		res.getWriter().print("hello world!");
	}
}
